package com.lzg.okrx.adapter

import com.lzy.okgo.adapter.AdapterParam
import com.lzy.okgo.adapter.Call
import com.lzy.okgo.adapter.CallAdapter
import com.lzy.okgo.model.Response
import io.reactivex.Observable

class ObservableResponse<T> : CallAdapter<T, Observable<Response<T>>> {

    override fun adapt(call: Call<T>, param: AdapterParam): Observable<Response<T>> =
        AnalysisParams.analysis(call, param)

}
